package realestate.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 08.04.11
 * Time: 12:10
 * To change this template use File | Settings | File Templates.
 */

@MappedSuperclass
public class ObjectOnMap extends ObjectOnMapShort {

	public static final String FIELD_UPDATE_TIME = "updTime";
	public static final String FIELD_DESCRIPTION = "descr";
	public static final String FIELD_LINK_TO_DETAIL = "lnk";

	
	@Column(name = FIELD_UPDATE_TIME)
	@Temporal(value = TemporalType.TIMESTAMP)
	@Version
	private Date last_update_date;

	@Column(name = FIELD_DESCRIPTION)
	private String description;

	@Column(name = FIELD_LINK_TO_DETAIL)
	private String link_to_detailed_info;



	public Date getLastUpdateDate() {
		return last_update_date;
	}

	public void setLastUpdateDate(Date last_update_date) {
		this.last_update_date = last_update_date;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getLink() {
		return link_to_detailed_info;
	}

	public void setLink(String link_to_detailed_info) {
		this.link_to_detailed_info = link_to_detailed_info;
	}


}
